import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';
/* 1. 引入 一个 Provider 高阶组件=> store 作为属性传入 */
import { Provider } from "react-redux";
/* 2. 引入仓库 */
import store from "./store";
ReactDOM.render(
  /* 3. 将App组件作为 Provider组件的子组件 */
  <Provider store={store}>
    <App></App>
  </Provider>,
  document.getElementById('root')
);

// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals();
